import 'dart:async';

import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'airplay_plus_method_channel.dart';

abstract class AirplayPlusPlatform extends PlatformInterface {
  /// Constructs a AirplayPlusPlatform.
  AirplayPlusPlatform() : super(token: _token);

  static final Object _token = Object();

  static AirplayPlusPlatform _instance = MethodChannelAirplayPlus();

  /// The default instance of [AirplayPlusPlatform] to use.
  ///
  /// Defaults to [MethodChannelAirplayPlus].
  static AirplayPlusPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [AirplayPlusPlatform] when
  /// they register themselves.
  static set instance(AirplayPlusPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<void> airPlay() {
    throw UnimplementedError('airPlay() has not been implemented.');
  }

  StreamController<bool> getAirPlayStatusStream() {
    throw UnimplementedError('getAirPlayStatusStream() has not been implemented.');
  }

  Future<bool> getAirPlayStatus() {
    throw UnimplementedError('getAirPlayStatus() has not been implemented.');
  }
}
